﻿using AutoMapper;
using B.S.DataBase.MyProject.Domain.Materials;
using B.S.DataBase.MyProject.Domain.Procurements;
using B.S.DataBase.MyProject.Domain.productionworkorder;
using B.S.DataBase.MyProject.Domain.Sales;
using T.E.ERP.Read.API.Dtos.Dtos;

namespace T.E.ERP.Read.API
{
    /// <summary>
    /// 映射
    /// </summary>
    public class AutoMapperFilePro:Profile
    {

        public AutoMapperFilePro()
        {
            CreateMap<MaterialsCopyDto,MaterialCategoryModel>().ReverseMap();
            CreateMap<Material_BasicDtos, Material_BasicModel>().ReverseMap();
            //采购部门
            CreateMap<PurchasingDtos,Purchasing>().ReverseMap();  

            //开票通知单所有数据
            CreateMap<InvoiceDtos, InvoiceSettlementEntity>().ReverseMap();
            //退货通知单所有数据
            CreateMap<return_notice_mainDtos, return_notice_main>().ReverseMap();
            //反填开票通知单
            CreateMap<FanInvoiceSettlementEntityDtos, InvoiceSettlementEntity>().ReverseMap();
            //反填退货通知单
            CreateMap<Fanreturn_notice_mainDtos, return_notice_main>().ReverseMap();
            //生产工单的查询
            CreateMap<SCWorkOrderDtos, ProductionWorkOrderBasicInfoSheet>().ReverseMap();
            //生产工单的详情查询
            CreateMap<SCWorkOrderXQDtos, ProductionWorkOrderBasicInfoSheet>().ReverseMap();

        }


    }
}
